package com.express.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.express.entity.SysApiResponseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * api响应body
 *
 * @author Rock.Zhou
 * @email cool_fish@aliyun.com
 * @date 2021-01-20 11:34:03
 */
@Repository
@Mapper
public interface SysApiResponseDao extends BaseMapper<SysApiResponseEntity> {

    /**
     * api 响应body插入
     * @param responseList
     * @return
     */
    int insertList(@Param("list") List<SysApiResponseEntity> responseList);

    /**
     * 存入，自动返回主键
     * @param responseBody
     * @return
     */
    int insertOne(SysApiResponseEntity responseBody);
}
